package com.hl.sfzy.controller.wxwappController;

import com.hl.sfzy.entity.wxwapp.TeacherDetail;
import com.hl.sfzy.service.wxwappService.TeacherDetailService;
import com.hl.sfzy.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: TeacherDetailController
 * @author: WXW
 * @date: 2024/9/7 11:16
 * @Version: 1.0
 * @description:
 */
@RestController
@RequestMapping("/teacherDetail")
public class TeacherDetailController {
    @Autowired
    private TeacherDetailService teacherDetailService;

    @GetMapping("/selectAll")
    public R selectAllHave(Integer tid,Integer pageNum,Integer pageSize){
        TeacherDetail teacher = teacherDetailService.findAllHave(tid,pageNum,pageSize);
        return R.success(teacher);
    }
}
